package com.ddwl.wallet.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.ddwl.wallet.converter.ChannelTypeConverter;
import com.ddwl.wallet.converter.InstantConverter;
import com.ddwl.wallet.converter.StatusConverter;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.Instant;

/**
 * @Author hemiaojun
 * @Date 2021/7/6 18:04
 */
@Getter
@Setter
@ColumnWidth(20)
public class ExportWithdraw {

    @ExcelProperty(index = 0, value = "用户id")
    private String userId;

    @ExcelProperty(index = 1, value = "用户姓名")
    private String userName;

    @ExcelProperty(index = 2, value = "用户id")
    private String mobile;

    @ExcelProperty(index = 3, value = "类型", converter = ChannelTypeConverter.class)
    private Integer channelType;

    @ExcelProperty(index = 4, value = "账号")
    private String account;

    @ExcelProperty(index = 5, value = "支行地址")
    private String accountAddress;

    @ExcelProperty(index = 6, value = "支付流水号")
    private String payFlow;

    @ExcelProperty(index = 7, value = "提现金额")
    private BigDecimal totalAmount;

    @ExcelProperty(index = 8, value = "实际到账金额")
    private BigDecimal realAmount;

    @ExcelProperty(index = 9, value = "手续费")
    private BigDecimal feeAmount;

    @ExcelProperty(index = 10, value = "状态", converter = StatusConverter.class)
    private Integer status;

    @ExcelProperty(index = 11, value = "失败原因")
    private String errorMsg;

    @ExcelProperty(index = 12, value = "创建时间", converter = InstantConverter.class)
    private Instant gmtCreated;

    @ExcelProperty(index = 13, value = "修改时间", converter = InstantConverter.class)
    private Instant gmtModified;


}
